package com.config.service.impl;

import com.config.entity.Courses;
import com.config.mapper.CoursesMapper;
import com.config.service.CoursesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CoursesServiceImpl implements CoursesService {
    @Autowired
    private CoursesMapper coursesMapper;
    @Override
    public List<Courses> findCourses() {
        return coursesMapper.selectByExample(null);
    }
}
